cmake_minimum_required(VERSION 3.15)
project(PokemonReplica)

set(CMAKE_CXX_STANDARD 17)

find_package(spdlog REQUIRED)
# 自动搜索所有源文件和头文件
file(GLOB_RECURSE SOURCES "event_bus/*.cpp" "events/*.cpp" "moves/*.cpp" "defines/*.cpp")
file(GLOB_RECURSE HEADERS "event_bus/*.h" "events/*.h" "moves/*.h" "defines/*.h")

# 创建可执行文件
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS} main.cpp)
target_link_libraries(${PROJECT_NAME} spdlog::spdlog)